import mongoengine as db
from app.db import BaseDocument


class AlertReceivers(BaseDocument):
    meta = {
        'collection': 'alertreceivers',
        'strict': False
    }

    phoneVerified = db.BooleanField(default=False)
    emailVerified = db.BooleanField(default=False)
    enable = db.BooleanField(default=False)
    isDefault = db.BooleanField(default=False)
    name = db.StringField()
    uid = db.ObjectIdField()
    email = db.EmailField()
    phone = db.StringField()
